package bth.reconfs;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

public class TabPagerAdapter extends FragmentStatePagerAdapter {
	private String[][][] planningWeek = new String[MainActivity.NB_TABS][MainActivity.NB_MAX_LIST][2];
	
	public TabPagerAdapter(FragmentManager fm, String[][][] planning) {
		super(fm);
		planningWeek = planning;
	}

	public Fragment getItem(int i) {
		switch (i) {
		case 0:
			//Fragment for Planning 1
			return new MainLists(planningWeek[0]);
		case 1:
			//Fragment for Planning 2
			return new MainLists(planningWeek[1]);
		case 2:
			//Fragment for Planning 3
			return new General();
		}
		return null;

	}

	public int getCount() {
		return 3;
	}
}